<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-merchantInfo-edit" th:object="${merchantInfo}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
	            <div class="form-group">	
                <label class="col-sm-3 control-label">商户姓名：</label>
                <div class="col-sm-8">
                    <input id="merchantName" name="merchantName" th:field="*{merchantName}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">实际可用余额：</label>
                <div class="col-sm-8">
                    <input id="avalibleMoney" name="avalibleMoney" th:field="*{avalibleMoney}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">商户信息描述：</label>
                <div class="col-sm-8">
                    <input id="merchantDesc" name="merchantDesc" th:field="*{merchantDesc}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">扩展信息1：</label>
                <div class="col-sm-8">
                    <input id="extendInfo" name="extendInfo" th:field="*{extendInfo}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">扩展信息2：</label>
                <div class="col-sm-8">
                    <input id="extendInfo2" name="extendInfo2" th:field="*{extendInfo2}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">扩展信息3：</label>
                <div class="col-sm-8">
                    <input id="extendInfo3" name="extendInfo3" th:field="*{extendInfo3}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">扩展信息4：</label>
                <div class="col-sm-8">
                    <input id="extendInfo4" name="extendInfo4" th:field="*{extendInfo4}" class="form-control" type="text">
                </div>
            </div>
									</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "module/merchantInfo"
		$("#form-merchantInfo-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-merchantInfo-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
